﻿using mars_server.csharp.enums;
using mars_server.csharp.model;
using mars_server.csharp.VO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mars_server.csharp.Util
{
    class DOVOutil
    {
        public static UserVO userDO2VO(UserDO userDO)
        {
            UserVO userVO = new UserVO();
            userVO.id = userDO.id;
            userVO.nickName = userDO.nickName;
            userVO.sex = userDO.sex;
            userVO.headImg = userDO.headImg;

            return userVO;

        }
        public static UserDO userVO2DO(UserVO userVO)
        {
            UserDO userDO = new UserDO();
            userDO.id = userVO.id;
            userDO.nickName = userVO.nickName;
            userDO.sex = userVO.sex;
            userDO.headImg = userVO.headImg;

            return userDO;

        }
    }
}
